﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Top.Oss
{
    /// <summary>
    /// OSS Client配置类
    /// </summary>
    public class OssConfig
    {
        public string AccessId
        {
            get;
            set;
        }

        public string AccessKey
        {
            get;
            set;
        }

        public string Endpoint
        {
            get;
            set;
        }
    }

    /// <summary>
    /// 上传文件规则配置
    /// </summary>
    public class OssUploadConfig
    {
        /// <summary>
        /// 上传到Bucket下面文件夹类型
        /// 如Mall、BPM等
        /// 层级Bucket/Mall/FolderRule
        /// </summary>
        public string FolderCategory
        {
            get;
            set;
        }

        /// <summary>
        /// 上传到Bucket下面文件夹规则
        /// 如yyyyMM
        /// </summary>
        public string FolderRule
        {
            get;
            set;
        }

        /// <summary>
        /// Bucket名在整个OSS中具有全局唯一性
        /// 可以配置在参数里
        /// </summary>
        public string BucketName
        {
            get;
            set;
        }
    }
}
